package com.swpu.library.sys.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hui
 * @since 2020-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BorrowRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private int id;

    /**
     * 借阅书id
     */
    private Integer bookId;

    /**
     * 借阅人id
     */
    private Integer people;

    /**
     * 借阅人角色id
     */
    private Integer roleId;

    /**
     * 借阅时间
     */
    private LocalDateTime borrowTime;

    /**
     * 归还时间
     */
    private LocalDateTime returnTime;

    /**
     * 逻辑删除 0 未删除 1 已经删除
     */
    @TableLogic
    private Integer deleted;


}
